//
//  ConnectModel.h
//  5.5解析作业
//
//  Created by dllo on 15/5/7.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol ConnectModelDelegate <NSObject>

- (void)connectFinished:(NSData *)data;

@end

@interface ConnectModel : NSObject<NSURLConnectionDataDelegate>
{
    int classIsa;
}
@property (nonatomic, assign) id<ConnectModelDelegate>delegate;

@property (nonatomic, retain) NSMutableData *receiveData;
- (void)startConnection:(NSString *)str parmaters:(NSDictionary *)parmaters;

+ (ConnectModel *)connectWithUrl:(NSString *)url delegate:(id<ConnectModelDelegate>)delegate parmaters:(NSDictionary *)parmaters;
@property (nonatomic, copy) NSString *requestUrl;
@end
